package com.nchu.commondevelopmentframework.service;

import com.nchu.commondevelopmentframework.service.base.BaseService;

/**
 * @InterfaceName: RoleMenuService
 * @description: 角色菜单关联service
 * @author: Li Chuanwei
 * @date: 2024/02/23 23:23
 **/
public interface RoleMenuService<RoleMenu> extends BaseService<RoleMenu> {
    /**
     * 根据用户ID查询菜单
     *
     * @param roleId 角色Id
     * @param menuId 菜单Id
     * @return boolean值
     */
    Boolean isRoleMenuExist(Long roleId, Long menuId);

    /**
     * 根据用户ID查询菜单
     *
     * @param roleMenu 实体类
     * @return boolean值
     */
    Boolean removeOne(RoleMenu roleMenu);
}
